]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "workspaceAnimation: Allow long swipes in session"
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 30 Jul 2021 08:46:52 +0000 (10:46 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 30 Jul 2021 13:46:35 +0000 (13:46 +0000)
The behavior when switching workspaces now with the touchpad gesture is
very very weird, it almost always swipes to the last workspace instead
of the next one.

So revert this change again and only swipe a single page per gesture. We
can enable long swipes again when we've figured out a proper way to
detect what the user wants (which is going to be quite challenging), see
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4355.

This reverts commit dfae3281b9a7fe6f5ccb6e9c175591a5ce31fd73.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1933>

js/ui/workspaceAnimation.js

index 0eec196bc09c7b3d4c17ca14ae2798c9804d9a2e..d240fe1562e887681403b310a96c2dea1149704a 100644 (file)
@@ -287,7 +287,6 @@ var WorkspaceAnimationController = class {
             Clutter.Orientation.HORIZONTAL,
             Shell.ActionMode.NORMAL,
             { allowDrag: false });
-        swipeTracker.allowLongSwipes = true;
         swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
         swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
         swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));